<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <h:outputStylesheet library = "css" name = "default.css" />
        <h:outputStylesheet library = "css" name = "cssLayout.css" />
        <title>Admin Template</title>
    </h:head>

    <h:body>
        <div class="wrapper">  
          
        <c:if test="#{loginBean.logedIn}">
        <div id="top">
            <div class="stl">
                <div class="logo">
                    <h3>ITU FRIEND U ADMIN</h3>
                </div>
                <div class="login">
                    <h:form  rendered="#{loginBean.logedIn}">
                        <h:commandLink action="#{loginBean.logout()}" value="LogOut" />
                    </h:form>
                </div>
            </div>
             <!-- Navigation -->
             
        </div>
        <div class="admin_menu"> 
            <ul class="admin_menu_list">
                <li><h:link value="Back to page" outcome="#{pageContext.request.contextPath}/web/splash/index" /></li>
                <li><h:link value="Users" outcome="#{pageContext.request.contextPath}/web/admin/user/search_list" /></li>
                <li><h:link value="Create user" outcome="#{pageContext.request.contextPath}/web/admin/user/create"/></li>
                <li><h:link value="Edit user" outcome="#{pageContext.request.contextPath}/web/admin/user/edit"/></li>
            </ul>
        </div>
        <div id="content" class="content">
                <ui:insert name="content">Content</ui:insert>
        </div>
        
        <div id="bottom">
            <ui:insert name="bottom">Bottom</ui:insert>
        </div>
        </c:if>   
        
        <h:panelGrid rendered="#{loginBean.logedIn == false}">
            <ui:insert name="adminLogin"></ui:insert>
        </h:panelGrid>
        </div>
    </h:body>

</html>
